package jp.eisbahn.mgapi.api.people;

import java.util.Arrays;

import jp.eisbahn.mgapi.api.Model;

import org.json.simple.JSONObject;

public class Person extends Model {

    protected Person(JSONObject original) {
        super(original);
    }
    
    public String getId() {
        return getPropertyString("id");
    }
    
    public String getDisplayName() {
        return getPropertyString("displayName");
    }
    
    public String getProfileUrl() {
        return getPropertyString("profileUrl");
    }
    
    public String getThumbnailUrl() {
        return getPropertyString("thumbnailUrl");
    }
    
    public String[] getEmails() {
        return getPropertyStringArray("emails");
    }

    @Override
    public String toString() {
        return "Person [getId()=" + getId() + ", getDisplayName()="
                + getDisplayName() + ", getProfileUrl()=" + getProfileUrl()
                + ", getThumbnailUrl()=" + getThumbnailUrl() + ", getEmails()="
                + Arrays.toString(getEmails()) + "]";
    }
    
}
